/**
 * Preference.java
 *
 * @author liujie11
 * 
 * @date 2014-3-19
 *  
 */
package com.baidu.common.preference;


public class LxbPreference extends BasePerference {
    private static LxbPreference instance;
    
    public final static String PREFERENCE_KEY_USER_INFO = "user_info";
    public final static String PREFERENCE_SERVER_URL = "sever_url";
    public final static String PREFERENCE_KEY_AUTO_LOGIN = "lxb_key_auto_login";
    public final static String PREFERENCE_KEY_CALLBACK_ON = "lxb_key_callback_on";
    public final static String PREFERENCE_KEY_IS_FIRST_DIALOG = "lxb_key_is_first_dialog";
    //public final static String PREFERENCE_KEY_MESSAGE_ON = "lxb_key_message_on";
    public final static String PREFERENCE_KEY_NEW_VERSION = "lxb_key_new_version";
    public final static String PREFERENCE_KEY_MSGS_NEED_REFRESH = "lxb_key_msgs_need_refresh";
    public final static String PREFERENCE_KEY_ADS = "lxb_key_ads";
    
    public static String PREFERENCE_USER_PERFIX = "lxb_key_user_";
    private final static String PREFERENCE_KEY_MSGS = "_msgs";
    private final static String PREFERENCE_KEY_UNREAD = "_unread";
    private final static String PREFERENCE_KEY_PHONE_RECORD_LIST = "_records";
    
    
    public static LxbPreference getInstance() {
        if (instance == null) {
            instance = new LxbPreference();
        }
        return instance;
    }
    
  
    
    
    
    // @SuppressWarnings("unchecked")
    // public ArrayList<String> getUsersLoginHistory() {
    // ArrayList<String> temp = null;
    // String json = LocalImageManager.readLocalStr(".movieacount");
    // if (!Tools.isEmpty(json))
    //
    // temp = JsonSerializer.getInstance().deserialize(json, ArrayList.class);
    // return temp;
    // }
    //
    // public void saveUsersLoginHistory(List<String> users) {
    // String json = "";
    // if (users != null) {
    // if (users.size() > 10) {
    // users.subList(0, 10);
    // }
    // json = JsonSerializer.getInstance().serialize(users);
    // }
    // if (!Tools.isEmpty(json)) {
    // LocalImageManager.saveString(json, ".movieacount", true);
    // }
    // }
}
